﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EraNet.Core.Model.SysManage;

namespace EraNet.Services.SysManage
{
    public interface IOSAInterfaceServices
    {

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Insert(OSAInterface model);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Update(OSAInterface model);
        /// <summary>
        /// 删除指定的对象
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Delete(int modelId);
        /// <summary>
        /// 根据ID获取信息
        /// </summary>
        /// <param name="noticeId"></param>
        /// <returns></returns>
        OSAInterface GetOsaById(int modelId);
        /// <summary>
        /// 批量获取数据
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        IList<OSAInterface> SelectPager(int PageIndex, int PageSize, out int PageCount);
        /// <summary>
        /// 获取当前指定ID下的公告列表
        /// </summary>
        /// <param name="SchoolId"></param>
        /// <param name="PageIndex"></param>
        /// <param name="Pagesize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        IList<OSAInterface> SelectPager(int InterfaceType, int Status, int PageIndex, int Pagesize, out int PageCount);



        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int InsertApply(OSAInterfaceApply model);
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int UpdateApply(OSAInterfaceApply model);
        /// <summary>
        /// 删除指定的对象
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int DeleteApply(int modelId);
        /// <summary>
        /// 根据ID获取信息
        /// </summary>
        /// <param name="noticeId"></param>
        /// <returns></returns>
        OSAInterfaceApply GetApplyById(int modelId);
        /// <summary>
        /// 批量获取数据
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        IList<OSAInterfaceApply> ApplySelectPager(int PageIndex, int PageSize, out int PageCount);
        /// <summary>
        /// 获取当前指定ID下的公告列表
        /// </summary>
        /// <param name="SchoolId"></param>
        /// <param name="PageIndex"></param>
        /// <param name="Pagesize"></param>
        /// <param name="PageCount"></param>
        /// <returns></returns>
        IList<OSAInterfaceApply> ApplySelectPager(int InterfaceType, int Status, int PageIndex, int Pagesize, out int PageCount);


        IList<OSAEntityList> SelectPagers(int PageIndex, int PageSize, out int PageCount);
    }
}
